package busca.tesoros.uclm;

import java.io.IOException;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;

public class BuscaTesorosActivity extends Activity implements OnClickListener{
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        
        
        View continuar = findViewById(R.id.click);
        continuar.setOnClickListener(this);
        
        BaseDatosHelper miBBDDHelper;
        
        
            miBBDDHelper = new BaseDatosHelper(this);
            try {
                miBBDDHelper.crearDataBase();
            } catch (IOException ioe) {
                throw new Error("Unable to create database");
            }
        
        
    }
    
    public void onClick(View v) {
    	switch (v.getId()) {
    	case R.id.click:
    		Intent i = new Intent(this, LoginActivity.class);
    		startActivity(i);
    		break;  
    	}
    } 
    
    
}